rem %windir%\system32\cmd.exe

rem copy cairo & required dll's to your target folder.
rem run as
rem         dllcpy.cmd <lib32 || lib64> <target directory>
rem for example
rem         dllcpy.cmd lib32 Win32/Debug

set RD=%~pd0
set LIBNN=%1
set TARGET_DIR=%2

rem if %LIBNN%==lib32 (
rem set FREETYPE_NAME=freetype6.dll
rem ) else (
rem set FREETYPE_NAME=libfreetype-6.dll
rem )

copy /Y %RD%..\cairo\%LIBNN%\libcairo-2.dll %TARGET_DIR%
copy /Y %RD%..\libpng\%LIBNN%\libpng12-0.dll %TARGET_DIR% 
copy /Y %RD%..\zlib\%LIBNN%\zlib1.dll %TARGET_DIR% 
rem copy /Y %RD%..\fontconfig\%LIBNN%\libfontconfig-1.dll %TARGET_DIR% 
rem copy /Y %RD%..\expat\%LIBNN%\libexpat-1.dll %TARGET_DIR% 
rem copy /Y %RD%..\freetype\%LIBNN%\%FREETYPE_NAME% %TARGET_DIR%